package com.rescue.forum.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
/**
 * 评论
 * @TableName forum_comment
 */
public class ForumComment implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 评论ID
     */

    @ApiModelProperty("评论ID")
    private Integer commentId;
    /**
     * 父级评论ID
     */
    @ApiModelProperty("父级评论ID")
    private Integer pCommentId;
    /**
     * 文章ID
     */
    @ApiModelProperty("文章ID")
    private String articleId;
    /**
     * 回复内容
     */
    @ApiModelProperty("回复内容")
    private String content;
    /**
     * 图片
     */
    @ApiModelProperty("图片")
    private String imgPath;
    /**
     * 用户ID
     */
    @ApiModelProperty("用户ID")
    private Integer userId;
    /**
     * 昵称
     */
    @ApiModelProperty("昵称")
    private String nickName;
    /**
     * 用户ip地址
     */
    @ApiModelProperty("用户ip地址")
    private String userIpAddress;
    /**
     * 回复人ID
     */
    @ApiModelProperty("回复人ID")
    private Integer replyUserId;
    /**
     * 回复人昵称
     */
    @ApiModelProperty("回复人昵称")
    private String replyNickName;
    /**
     * 0:未置顶  1:置顶
     */
    @ApiModelProperty("0:未置顶  1:置顶")
    private Integer topType;
    /**
     * 发布时间
     */
    @ApiModelProperty("发布时间")
    private LocalDateTime postTime;
    /**
     * good数量
     */
    @ApiModelProperty("good数量")
    private Integer goodCount;
    /**
     * 0:待审核  1:已审核
     */
    @ApiModelProperty("0:待审核  1:已审核")
    private Integer status;

}
